﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Ceremony.API.Model
{
    /// <summary>
    /// 授权码
    /// </summary>
    public class Authorize
    {
        public int Id { get; set; }
        /// <summary>
        /// 代码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 是否已启用
        /// </summary>
        public bool IsEnable { get; set; }

        private Authorize() { }

        public Authorize(string code)
        {
            this.Code = code;
            IsEnable = false;
        }

    }
}
